package com.wit.service.impl;

import java.util.List;

import com.wit.dao.ProjectDao;
import com.wit.po.Insurancedef;
import com.wit.po.Project;
import com.wit.service.ProjectService;

public class ProjectServiceImpl implements ProjectService {

	private ProjectDao projectDao;
	
	public ProjectDao getProjectDao() {
		return projectDao;
	}

	public void setProjectDao(ProjectDao projectDao) {
		this.projectDao = projectDao;
	}

	
	public boolean addProject(Project project) {
		// TODO Auto-generated method stub
		return projectDao.addProject(project);
	}

	
	public boolean deleteProject(Project project) {
		// TODO Auto-generated method stub
		return projectDao.deleteProject(project);
	}

	
	public Project findProjectByIdenfier(String projectNum) {
		// TODO Auto-generated method stub
		return projectDao.findProjectByIdenfier(projectNum);
	}

	
	public List<Project> findProjectByInsurancedef(Insurancedef insurancedef) {
		// TODO Auto-generated method stub
		return projectDao.findProjectByInsurancedef(insurancedef);
	}

	
	public boolean modifyProject(Project project) {
		// TODO Auto-generated method stub
		return projectDao.modifyProject(project);
	}

}
